﻿@model IEnumerable<TestMvcApp.Models.RestaurantListViewModel>
@{
    ViewBag.Title = "Home Page";
}

<form method="GET" action="@Url.Action("Index")"
      data-otf-ajax="true" data-otf-target="#restaurantList">
    
    <input type="search" name="searchTerm"/>
    <input type="submit" value="Search By Name"/>
</form>

@*@using (Ajax.BeginForm(
    new AjaxOptions
    {
        HttpMethod = "get",
        InsertionMode = InsertionMode.Replace,
        UpdateTargetId = "restaurantList"
    }))
{
    <input type="search" name="searchTerm" />
    <input type="submit" value="Search By Name"/>
}*@

@Html.Partial("_Restaurants", Model)